package com.niuke;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Scanner;

/**
 * 6. 人气最高的店铺 （完全没思路）
 * https://blog.csdn.net/misayaaaaa/article/details/131685466
 */
public class NiukeMoni8buhui {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        String[] line1 = str.split(",");
        int shiMin = Integer.parseInt(line1[0]);
        int shops = Integer.parseInt(line1[1]);

        List<List<Integer>> touPiao = new ArrayList<>();
        Map<Integer, Integer> touPiaoCount = new HashMap<>();
        for (int i = 0; i < shiMin; i++) {
            String strI = scanner.nextLine();
            String[] lineI = str.split(",");
            List<Integer> item = new ArrayList<>();
            int dianPu = Integer.parseInt(line1[0]);
            int youHui = Integer.parseInt(line1[1]);
            item.add(dianPu);
            item.add(youHui);
            touPiao.add(item);

            touPiaoCount.put(dianPu, touPiaoCount.getOrDefault(dianPu, 0) + 1);
        }


    }

}
